package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 活动规则对象 sys_active_rule
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
public class SysActiveRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规则ID */
    private Long ruleId;

    /** 活动ID */
    @Excel(name = "活动ID")
    private Long activeId;

    /** 图片 */
    @Excel(name = "图片")
    private String ruleImage;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 奖品 */
    @Excel(name = "奖品")
    private String winProd;

    /** 中奖弹窗图片 */
    @Excel(name = "中奖弹窗图片")
    private String winImage;

    /** 数量 */
    @Excel(name = "数量")
    private Long prodNum;

    /** 中奖概率 */
    @Excel(name = "中奖概率")
    private BigDecimal winChance;

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setActiveId(Long activeId) 
    {
        this.activeId = activeId;
    }

    public Long getActiveId() 
    {
        return activeId;
    }
    public void setRuleImage(String ruleImage) 
    {
        this.ruleImage = ruleImage;
    }

    public String getRuleImage() 
    {
        return ruleImage;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setWinProd(String winProd) 
    {
        this.winProd = winProd;
    }

    public String getWinProd() 
    {
        return winProd;
    }
    public void setWinImage(String winImage) 
    {
        this.winImage = winImage;
    }

    public String getWinImage() 
    {
        return winImage;
    }
    public void setProdNum(Long prodNum) 
    {
        this.prodNum = prodNum;
    }

    public Long getProdNum() 
    {
        return prodNum;
    }
    public void setWinChance(BigDecimal winChance) 
    {
        this.winChance = winChance;
    }

    public BigDecimal getWinChance() 
    {
        return winChance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleId", getRuleId())
            .append("activeId", getActiveId())
            .append("ruleImage", getRuleImage())
            .append("ruleName", getRuleName())
            .append("winProd", getWinProd())
            .append("winImage", getWinImage())
            .append("prodNum", getProdNum())
            .append("winChance", getWinChance())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
